home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 April / EnterCD 4_2003.iso / Multimedia / AlbumCreator 2.5 / AC2.exe / christmas2.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2002-11-27  |  1.1 KB  |  46 lines

  1. total = config.getBytesTotal() + getBytesTotal();
  2. loaded = config.getBytesLoaded() + getBytesLoaded();
  3. loader.gotoAndStop(1 + Math.round(5 * loaded / total));
  4. if(isFinite(loaded + "") && isFinite(total + "") && loaded < total)
  5. {
  6.    gotoAndPlay(2);
  7. }
  8. else
  9. {
  10.    root = config.firstChild;
  11.    while(root.nodeType != 1)
  12.    {
  13.       root = root.nextSibling;
  14.    }
  15.    var i = 0;
  16.    while(i < root.childNodes.length)
  17.    {
  18.       brench = root.childNodes[i];
  19.       if(brench.nodeType == 1 && brench.nodeName == "images")
  20.       {
  21.          var j = 0;
  22.          while(j < brench.childNodes.length)
  23.          {
  24.             if(brench.childNodes[j].nodeType == 1)
  25.             {
  26.                addImage(brench.childNodes[j]);
  27.             }
  28.             j++;
  29.          }
  30.       }
  31.       if(brench.nodeType == 1 && brench.nodeName == "params")
  32.       {
  33.          var j = 0;
  34.          while(j < brench.childNodes.length)
  35.          {
  36.             if(brench.childNodes[j].nodeType == 1)
  37.             {
  38.                set(brench.childNodes[j].nodeName,brench.childNodes[j].firstChild);
  39.             }
  40.             j++;
  41.          }
  42.       }
  43.       i++;
  44.    }
  45. }
  46.